import Vue from 'vue'
import Router from 'vue-router'
import Login from '@/Pages/Login/Login'
import Home from '@/Pages/Home/Home'

Vue.use(Router)

export default new Router({
  routes: [{
    path: '/login',
    name: 'Login',
    component: Login,
    meta: {
      title: '登录页'
    }
  },
  {
    path: '/home',
    name: 'Home',
    component: Home,
    meta: {
      title: '首页'
    }
  }
  ],
  scrollBehavior (to, from, savedPosition) {
    return {
      x: 0,
      y: 0
    }
  }
})
